package cn.stylefeng.guns.modular.business.frequency.transportleveldetail.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 运单目的地以及费用记录
 *
 * @author yujie
 * @date 2023/05/09 17:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TransportLevelDetailParam extends BaseParam {

    /**
     * level_id
     */
    @NotNull(message = "level_id不能为空",groups = {add.class,edit.class})
    private Long levelId;

    /**
     * order_id
     */
    @NotNull(message = "order_id不能为空",groups = {add.class,edit.class})
    private Long orderId;

    /**
     * 是否代收 1.是 0.否
     */
    @NotNull(message = "是否代收 1.是 0.否不能为空",groups = {add.class,edit.class})
    private Integer hasCollection;

    /**
     * 应付费用
     */
    @NotNull(message = "应付费用不能为空",groups = {add.class,edit.class})
    private BigDecimal cost;

    /**
     * 运单出发地
     */
    @NotNull(message = "运单出发地不能为空",groups = {add.class,edit.class})
    private String startCode;

    /**
     * 运单到达地
     */
    @NotNull(message = "运单到达地不能为空",groups = {add.class,edit.class})
    private String destinationCode;

    /**
     * 新建时间
     */
    private Date createTime;

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

}
